import React, { PureComponent } from 'react'
import './Loading.scss'

interface Props {
  fullOpen: Function
  fullHide: Function
}
interface State {}
export default class Loading extends PureComponent<Props, State> {
  componentDidMount() {
    console.log('loading start')
    this.props.fullOpen()
  }
  componentWillUnmount() {
    console.log('loading end')
    this.props.fullHide()
  }
  render() {
    return <div hidden></div>
  }
}
